package hku.cs.lunuo.cfg;

import java.io.File;

public class test {
	
	public void xt() {
		try {
		try {
			int a = 0;
			a++;
		}catch(Exception e) {
			int b=0;
			if(b==0)
				b++;
			else
				b--;
			System.out.println();
		}}catch(Exception e) {
			System.out.println();
		}
		
		System.out.println();
	}

	public int demo(int a, int b) {
		int x = 0;
		if (a != 0) {
			b++;
			if (b >= 0 || (a--) < 0) { // if(b == 0 || (a++)<0)
				a++;
				if (b != 0) {
					x = a * b;
				} else
					x = b * b;
			} else
				x = b++;
		}
		return x;
	}

	public int mid(int x, int y, int z) {
		int m = z;
		if (y < z) {
			if (x < y)
				m = y;
			else if (x < z)
				m = y; // Should be "m = x"
		} else if (x > y)
			m = y;
		else if (x > z)
			m = x;
		return m;
	}

	public String max() {
		int index = 0;
		String path = "dddd", device="aa";
		StringBuffer directory = new StringBuffer("ddd");
		
		boolean isAbsolute = true;
		if (isAbsolute) {
            index = path.indexOf(File.separatorChar, 1);
            if (index == -1) {
                return path.substring(1) + ":[000000]";
            } else {
                device = path.substring(1, index++);
            }
        }
		
		
		
		if (!isAbsolute && directory != null) {
	            directory.insert(0, '.');
	    }
		
		
		return null;

	}
	
	public void xx() {
		boolean a = false, b=true;
		
		if(a) {
			System.out.println();
			if(b)
				System.out.println();
		}
		
		if(a||b)
			System.out.println();
	}

	// int a=0;
	// int b=0;
	//		
	// if(a==0) {
	//			
	// if(b==1) {
	// if(a==0)
	// System.out.println();
	// }
	// if(b==1)
	// System.out.println();
	//			
	// System.out.println();
	// }

}
